//
//  UIApplication+Extension.swift
//  RongYiHua
//
//  Created by 卢小艳 on 2025/7/11.
//

import Foundation
import UIKit

extension UIApplication {
    // 获取当前窗口的 jqfxhSafeAreaInsets
    var jqfxhSafeAreaInsets: UIEdgeInsets {
            // 获取当前活动的 UIWindowScene
        if let windowScene = connectedScenes.first(where: { $0 is UIWindowScene }) as? UIWindowScene {
            // 返回当前窗口的 jqfxhSafeAreaInsets
            return windowScene.windows.first?.safeAreaInsets ?? .zero
        }
        return .zero
    }
    
    
    
}
